var stat = B.statistics();
B.formatterFactory.get(S.Format.STRING).printStatistics(stat);

var d = B.transactions.get(0).getDate();
var cashAccounts = B.virtualAccount("(Cash)").getAccounts().get();
var t = S.cashFlow({
    cashAccounts: function (account) {
        return cashAccounts.contains(account);
    }
});
B.formatterFactory.get(S.Format.STRING).printCashFlow(t, d, cashAccounts);